/*
 * ScrollBar.h
 *
 *  Created on: 2011-1-5
 *      Author: Administrator
 */

#ifndef SCROLLBAR_H_
#define SCROLLBAR_H_

#include <coecntrl.h>

class CScrollBar : public CBase
	{
public:
	static CScrollBar* NewL(const TRect& aRect);
	static CScrollBar* NewLC(const TRect& aRect);
	virtual ~CScrollBar();
	
public:
    void Draw(CWindowGc& gc) const;
    
public:
    TInt CurPos();
    void setCurPos(TInt aPos);
    TInt SliderHeight();
    void setSliderHeight(TInt aHeight);
    void SetRect(const TRect& aRect);
    TBool Visible();
    void setVisible(TBool aVisible);
    void setDirection(TBool aVertical);
    
protected:
	CScrollBar();
	void ConstructL(const TRect& aRect);
	
private:
	TInt iCurPos;
	TInt iSliderHeight;
	TRect iRect;
	TBool iVisible;
	TBool iDirection;
	};

#endif /* SCROLLBAR_H_ */
